@extends('layouts.template')

@section('title', '个人中心')

@section('header')
@endsection

@section('content')
    <script>
        $(function () {
        });
    </script>

    <article>
        <div class="cont-t">
            <div class="tbox">
                <div class="fl">
                    <h2>当前订单金额：{{$total}}元</h2>
                </div>
            </div>
        </div>
        <div class="cont-t">
            <div class="tbox">
                <div class="fl">
                    <p>
                        <span style="background: gray;color:white;text-align: center;padding:5px;margin-right: 10px;">初始</span>
                        {{$order->offer_price}}元</p>
                </div>
                <div class="fr">
                    <p>{{$order->pay_time->format('Y-m-d')}}</p>
                </div>
            </div>
        </div>
        @foreach ($list as $row)
        <div class="cont-t">
            <div class="tbox">
                <div class="fl">
                    <p style="color:red">
                        <span style="background: red;color:white;text-align: center;padding:5px;margin-right: 10px;">增加</span>
                        +{{$row->replenish_amount}}元（增加服务费用）</p>
                </div>
                <div class="fr">
                    <p>{{$row->pay_time}}</p>
                </div>
            </div>
            <div class="tbox" style="margin-top: 5px;">
                <div class="fl">
                    <p>{{$row->replenish_reason}}</p>
                </div>
            </div>
        </div>
        @endforeach
    </article>
@endsection